package com.xuecheng.api.media.model;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {
    @ApiOperation("媒资存储")
    MediaDTO createMedia(MediaVO vo);
    @ApiOperation("媒资查询")
    PageVO queryMediaList(PageRequestParams params, QueryMediaModel model);
    @ApiOperation("获得媒资信息预览资源地址")
    @ApiImplicitParam(name="mediaId",value = "媒资id值",required = true,dataType = "Long",paramType = "path")
    String previewMedia(Long mediaId);
    @ApiOperation("根据id删除媒资")
    void removeMedia(Long mediaId);
    @ApiOperation("根据媒资id查询媒资信息--微服务")
    RestResponse<MediaDTO> getMediaById4s(Long mediaId);
}
